﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_SCHEDULE_DATA
// * CreateDate    : 2012/8/20 17:46:23
// * Creater       : CodeSmith
// * LastChangeDate: 2012/8/20 17:46:23
// * LastChanger   : 2012/8/20 17:46:23
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class ScheduleDataTable : TableInfo
    {
        public const string C_TableName = "SCHEDULE_DATA";

        public const string C_ID = "ID";
        public const string C_KEY_VALUE = "KEY_VALUE";
        public const string C_SUBJECT = "SUBJECT";
        public const string C_START_TIME = "START_TIME";
        public const string C_INTERVAL_FIELD = "INTERVAL_FIELD";
        public const string C_LOCATION = "LOCATION";
        public const string C_COLOR_VALUE = "COLOR_VALUE";
        public const string C_STATE_VALUE = "STATE_VALUE";

        public ScheduleDataTable()
        {
            _tableName = "SCHEDULE_DATA";
        }

        protected static ScheduleDataTable _current;
        public static ScheduleDataTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new ScheduleDataTable();

            _current.Add(C_ID, new ColumnInfo(C_ID, "Id", false, typeof(string)));
            _current.Add(C_KEY_VALUE, new ColumnInfo(C_KEY_VALUE, "KeyValue", false, typeof(string)));
            _current.Add(C_SUBJECT, new ColumnInfo(C_SUBJECT, "Subject", false, typeof(string)));
            _current.Add(C_START_TIME, new ColumnInfo(C_START_TIME, "StartTime", false, typeof(DateTime)));
            _current.Add(C_INTERVAL_FIELD, new ColumnInfo(C_INTERVAL_FIELD, "IntervalField", false, typeof(DateTime)));
            _current.Add(C_LOCATION, new ColumnInfo(C_LOCATION, "Location", false, typeof(string)));
            _current.Add(C_COLOR_VALUE, new ColumnInfo(C_COLOR_VALUE, "ColorValue", false, typeof(int)));
            _current.Add(C_STATE_VALUE, new ColumnInfo(C_STATE_VALUE, "StateValue", false, typeof(int)));

        }

        public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }

        public ColumnInfo KEY_VALUE
        {
            get { return this[C_KEY_VALUE]; }
        }

        public ColumnInfo SUBJECT
        {
            get { return this[C_SUBJECT]; }
        }

        public ColumnInfo START_TIME
        {
            get { return this[C_START_TIME]; }
        }

        public ColumnInfo INTERVAL_FIELD
        {
            get { return this[C_INTERVAL_FIELD]; }
        }

        public ColumnInfo LOCATION
        {
            get { return this[C_LOCATION]; }
        }

        public ColumnInfo COLOR_VALUE
        {
            get { return this[C_COLOR_VALUE]; }
        }

        public ColumnInfo STATE_VALUE
        {
            get { return this[C_STATE_VALUE]; }
        }



    }
}

